package mybatis.controller;

import mybatis.bean.User;
import mybatis.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/index")
public class IndexController {
//    @Autowired
//    private IndexService indexService;

    @RequestMapping("/login")
    public String login(String id){
//        User user = indexService.login(id);
//        return user.getName();
        return "login";
    }

    @RequestMapping("/register")
    public String register(){
        return "register";
    }
}
